package com.dev;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Rect;
import android.app.Application;
class IconQuit extends IconView{
	Bitmap quit;
	IconQuit(MainActivity ma){
		super(ma);
		quit=BitmapFactory.decodeResource(getResources(),R.drawable.ic_quit_thin);
	}
	@Override
	protected void onDraw(Canvas canvas){
		super.onDraw(canvas);
		int vh=getHeight();
		int vw=getWidth();
		int paddingVer=vh/8;
		int strokeWidth=vh/10;
		int ww=getHeight()/2;
		int rr=(vw-vh)/2+vh;
		int ll=rr-ww;
		int bb=vh-paddingVer;
		int lll=vw-rr;
		Paint p=new Paint();
		p.setColor(0xff000000);
		canvas.drawBitmap(quit,null,new Rect(lll,paddingVer,lll+vh,vh-paddingVer),p);
		canvas.drawRect(ll,paddingVer,rr,paddingVer+strokeWidth,p);
		canvas.drawRect(rr-strokeWidth,paddingVer,rr,bb,p);
		canvas.drawRect(ll,bb-paddingVer,rr,bb,p);
	}
}
